package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.SubstanceDeeplinkCardBean;
import o.cgz;
import o.chy;
import o.evx;
import o.ewm.j;

public class SubstanceDeeplinkCard extends BaseDistCard {
    private View ˋ;
    private TextView ॱॱ;
    private TextView ᐝ;

    public SubstanceDeeplinkCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        this.ˋ = view.findViewById(j.ˊʾ);
        this.ᐝ = (TextView) view.findViewById(j.ˊᐨ);
        this.ॱॱ = (TextView) view.findViewById(j.ˊˑ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (cardBean instanceof SubstanceDeeplinkCardBean) {
            SubstanceDeeplinkCardBean substanceDeeplinkCardBean = (SubstanceDeeplinkCardBean) cardBean;
            CharSequence ʽ = substanceDeeplinkCardBean.ʽ();
            CharSequence ꓸ = substanceDeeplinkCardBean.ꓸ();
            if (ʽ != null) {
                this.ᐝ.setText(ʽ);
            }
            if (ꓸ != null) {
                this.ॱॱ.setText(ꓸ);
            }
        }
    }

    public void ॱ(final chy o_chy) {
        this.ˋ.setOnClickListener(new evx(this) {
            final /* synthetic */ SubstanceDeeplinkCard ˋ;

            public void ˋ(View view) {
                o_chy.ˏ(0, this.ˋ);
            }
        });
    }
}
